<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复习</title>
</head>
<body>
    <script>
        // ... 扩展运算符
        // 数组合并
        // 对象合并
        // 将伪数组转为真数组

        // let arr=  [1,2,3];
        // let arr2 = [4,5,6];
        // let result = [...arr, ...arr2]
        //             //   1,2,3,  4,5,6
        // console.log(result);

        let obj1 = {one: '翻滚'}
        let obj2 = {two: '耙子勾'}
        let result = {...obj1, ...obj2}

        console.log(result);
        
    </script>
</body>
</html>